{__NOLAYOUT__}
<include file="Index:header" />
<div class="pad-10">
  <div class="content-menu ib-a blue line-x">添加菜单</div>
  <div class="col-auto">
    <div class="col-1">
      <div class="content pad-6">
		 	
			<form name="myform" class="myform" method="post" action="__APP_PATH__index.php?g=Admin&m=Node&a=add"><!-- Form -->
          <table width="100%" cellspacing="0" class="table_form">
				<!-- Fieldset -->
<tbody>	
					<tr>
						<th style="width: 120px;">上级菜单: </th>
                        <td style="width: 120px;">
 						<select name="parentid" id="parentid"  datatype="n" nullmsg="选择上级菜单！" errormsg="选择上级菜单！" >
				       	 	<option value="0">做为一级菜单</option>
							{$select_categorys}
						</select>
						</td>
                        <td>
                            <div class="Validform_checktip">选择上级菜单</div>
                        </td>
                 </tr>
					<tr>
						<th>级别:</th><td>
 						<select name="level" datatype="n" nullmsg="选择级别！" errormsg="选择级别！">
                            <option >请选择</option>
							<option value="1">应用</option>
				       	 	<option value="2">控制器</option>
				       	 	<option value="3">方法</option>
						</select>
						</td>
                        <td>
                            <div class="Validform_checktip">选择级别</div>
                        </td>
                 </tr>

				 <tr>
						<th>中文名称: </th><td>
 						<input class="mediumfield" id="title" name="title" type="text"  datatype="*" nullmsg="输入中文名称！" errormsg="输入中文名称！" value="" />
					</td>
                     <td>
                         <div class="Validform_checktip">输入中文名称</div>
                     </td>
                 </tr>


                    <tr>
                        <th>分组名: </th><td>
                        <input class="mediumfield" id="Qg" name="Qg" type="text" value="" />
                    </td>
                    </tr>

                    <tr>
                        <th>文件名: </th><td>
                        <input class="mediumfield" id="Qm" name="Qm" type="text" value="" />
                    </td>
                    </tr>

                    <tr>
                        <th>方法名: </th><td>
                        <input class="mediumfield" id="Qa" name="Qa" type="text" value="" />
                    </td>
                    </tr>

                    <tr>
                        <th>对应的操作名称: </th><td>
                        <input class="mediumfield" id="name" name="name" type="text" datatype='zimu' nullmsg="不能为空！"errormsg="输入对应的操作名称(字母)！" value="" />
                        </td>
                        <td>
                            <div class="Validform_checktip">操作名称（只能是字母+数字+下划线:2-30长度）</div>
                        </td>
                    </td>
                    </tr>

                    <tr>
                        <th>附加参数: </th><td>
                        <input class="mediumfield" id="data" name="data" type="text" value="" />
                    </td>
                    </tr>
                     <!--
                    <tr>
                        <th>url链接: </th><td>
                        <input class="mediumfield" style="width: 200px;" id="url" name="url" value="">
                        <span style="color: red;">实例：1,/admin.php/Content/collect_clist?modelid=8 2,?m=admin&c=plugin&a=init</span>
                    </td>
                    </tr>
                    -->
					<tr>
						<th>是否展示: </th><td>
 						<input name="display" value="1" checked="checked" type="radio"> 是<input name="display" value="0" type="radio"> 否
						</td>
                    </tr>

                    <tr>
                        <th>类型: </th><td>
                        <input name="type" value="0" checked="checked" type="radio"> 导航<input name="type" value="1" type="radio"> 操作
                    </td>
                    </tr>
<!--
					<tr>
						<th>描述: </th><td>
						<textarea name="moduledesc" style="width:450px;height:86px;"></textarea>
 					</td>
                    </tr>
                                  -->
                     <tr>
					 <td></td>
					 <td>
						<input class="button" name="dosubmit" type="submit" value="提交" />
				</td>
              </tr>               
			</tbody>
          </table>
        </form>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
    $(function(){
        //$(".registerform").Validform();  //就这一行代码！;

        $(".myform").Validform({
            tiptype:2
        });
        //传入自定义datatype类型【方式一】;
        $.extend($.Datatype,{
            "zimu" : /^[a-zA-Z]\w{2,30}$/
        });

    })

</script>
<include file="Public:footer" />